package test.covert;

import org.springframework.beans.factory.annotation.Autowired;
import test.utils.SpringUtil;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2023/1/7 22:57
 * @ Description:
 */
public interface VoToDTOCovert {
    default Object covert(Object vo , Class<? extends VoToDTOCovert> aClass) {
        VoToDTOCovert voToDTOCovert = null;
        voToDTOCovert = SpringUtil.getBean(aClass);
        return voToDTOCovert.doCovert(vo);
    }

    public Object doCovert(Object vo);
}
